Component({
  properties: {
    guide: {
      type: Object,
      value: {}
    }
  },

  methods: {
    onCardTap() {
      this.triggerEvent('tap', { guide: this.properties.guide });
    },

    onFavoriteTap(e) {
      e.stopPropagation();
      this.triggerEvent('favorite', { id: this.properties.guide.id });
    },

    onShareTap(e) {
      e.stopPropagation();
      this.triggerEvent('share', { guide: this.properties.guide });
    }
  }
});
